#ifndef PARSER_H
#define PARSER_H

#include "Headers.h"
#include "Console.h"
#include "Communicate.h"
#include "GrammarChecker.h"
#include "ParserGameInfoChecker.h"
#include "GamesHistory.h"

class Parser
{
private:
    QVector<QString> * _tokens;
    QVector<QString> * _retTokens;
    GrammarChecker * _gramma;
    void showErr(int * line,QString * ErrCont, int type=0);
    void showErr(int * lineB,int * lineE,QString * ErrCont);
public:
    Parser(QVector<QString> * tokens);
    QVector<QString> * getTokens() const;
    bool parse();
    ~Parser();
};

#endif // PARSER_H
